/**
 *  at24c08.h - Driver for at24c08 that is a IIC store device.
 *
 *  Copyright (C) 2008-2010 ZhangHu
 *  All rights reserved.
 *  E-MAIL: anmnmnly@gmail.com
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
#ifndef __AT24CXX_H__
#define __AT24CXX_H__

#include "include/types.h"

#define IIC_ISR_NUM INT_IIC

extern void init_iic_eeprom(void);
extern void set_iic_eeprom_mode(bool_t master_mode);
extern uint32 get_iic_eeprom_size(void);
extern bool_t iic_eeprom_write_byte(uint32 addr, char_t data);
extern char_t iic_eeprom_read_byte(uint32 addr, int32 *err);


#endif

